import service from '@/utils/request'

export const useKyyApi = (id: number) => {
	return service.get('/kyy/config/' + id)
}

export const useKyySubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/kyy/config', dataForm)
	} else {
		return service.post('/kyy/config', dataForm)
	}
}
